package com.atguigu.my.chapter01

/**
 *
 * @description: xxx
 * @time: 2020-05-20 16:43
 * @author: baojinlong 
 **/
object PrintDemo {
  def main(args: Array[String]): Unit = {
    val name: String = "tom"
    val age: Int = 10;
    val sal: Float = 10.33F
    val height: Float = 10.33F
    printf("名字=%s 年龄是%d 薪水%.2f 高%.3f", name, age, sal, height)
    println(s"\n 姓名$name")
    println(s"\n 十年之后${age + 10}")
  }

}
